package com.kupurui.asteacher.adapter;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;

import com.android.frame.adapter.CommonAdapter;
import com.android.frame.adapter.ViewHolder;
import com.kupurui.asteacher.R;
import com.kupurui.asteacher.bean.CorrectDetailsInfo;

import java.util.List;

/**
 * Created by Administrator on 2017/7/25.
 */

public class CorrectUnAdapter extends CommonAdapter<CorrectDetailsInfo.NoPigaiBean> {
    public CorrectUnAdapter(Context context, List<CorrectDetailsInfo.NoPigaiBean> mList, int itemLayoutId) {
        super(context, mList, itemLayoutId);
    }

    @Override
    public void convert(ViewHolder holder, CorrectDetailsInfo.NoPigaiBean item, int positon) {
        ImageView ivStatus = holder.getView(R.id.iv_status);
        ivStatus.setVisibility(View.GONE);
        holder.setImageByUrl(R.id.imgv_head,item.getImg());
        holder.setTextViewText(R.id.tv_name,item.getName());
    }
}
